package org.tinygroup.fulltext;

/**
 * 默认搜索规则
 * @author yancheng11334
 *
 */
public class DefaultRule {

    private  String rule;
	
	private  QueryRelation relation;
	
	private  QueryType type;

	public DefaultRule() {
		super();
	}

	public DefaultRule(String rule, QueryRelation relation, QueryType type) {
		super();
		this.rule = rule;
		this.relation = relation;
		this.type = type;
	}

	public String getRule() {
		return rule;
	}

	public void setRule(String rule) {
		this.rule = rule;
	}

	public QueryRelation getRelation() {
		return relation;
	}

	public void setRelation(QueryRelation relation) {
		this.relation = relation;
	}

	public QueryType getType() {
		return type;
	}

	public void setType(QueryType type) {
		this.type = type;
	}

	public String toString() {
		return "DefaultRule [rule=" + rule + ", relation=" + relation
				+ ", type=" + type + "]";
	}
	
	
}
